package com.suneast.suneaststore.modules.goodsdetail.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.suneast.suneaststore.R;
import com.suneast.suneaststore.bean.goodsdetail.SpecificationBean;

public class SpecificationAdapter extends BaseQuickAdapter<SpecificationBean, BaseViewHolder> {

    public SpecificationAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, SpecificationBean item) {
        helper.setText(R.id.tv_name, item.getName())
                .setText(R.id.tv_value, item.getValue());
    }

}
